package nju.mscs.data.object;

import java.io.Serializable;
import java.util.ArrayList;

public class VipConsumer implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3956993580205620897L;
	public static boolean MALE = true;
	public static boolean FEMALE = false;
	private boolean sex;
	private String name;
	private String id;
	private int sumPoints;
	private int restPoints;
	private int telephone;
	private Date birth;
	private boolean birthGift;//新增
	private ArrayList<String> Gift=new ArrayList<String>();//新增
	private int pointGift;//新增
	
	VipConsumer(String name,String id,boolean sex,int telephone,Date date){
		this.name = name;
		this.id = id;
		this.sex = sex;
		this.sumPoints= 0;
		this.restPoints=0;
		this.setTelephone(telephone);
		this.setBirth(date);
	}
	
	public boolean getSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getSumPoints() {
		return sumPoints;
	}

	public void addSumPoints(int points) {
		this.sumPoints+=points;
		this.restPoints +=points;
	}

	public void setSumPoints(int sumPoints) {
		this.sumPoints = sumPoints;
		this.restPoints = sumPoints;
	}

	public void setRestPoints(int restPoints) {
		this.restPoints = restPoints;
	}

	public int getRestPoints() {
		return restPoints;
	}

	public void addRestPoints(int points) {
		this.restPoints +=points;
	}
	

	public int getTelephone() {
		return telephone;
	}

	public void setTelephone(int telephone) {
		this.telephone = telephone;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}
	public void addGift(String id){
		this.Gift.add(id);
	}
	public ArrayList<String> getGift(){
		return this.Gift;
	}
	public void InGift(){
		this.Gift=new ArrayList<String>();
	}
	public boolean isBirthGift() {
		return birthGift;
	}

	public void setBirthGift(boolean birthGift) {
		this.birthGift = birthGift;
	}

	public int getPointGift() {
		return pointGift;
	}

	public void addPointGift() {
		this.pointGift++;
	}
}
